```html
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Cloudflare Workers 边缘计算平台 | 开发者指南</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        :root {
            --primary: #4b6cb7;
            --secondary: #182848;
            --accent: #f6b93b;
            --light: #f8f9fa;
            --dark: #212529;
            --gray: #6c757d;
            --code-bg: #f3f4f6;
            --transition: all 0.3s ease;
        }
        
        body {
            font-family: 'Noto Sans SC', 'Noto Serif SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            line-height: 1.6;
            color: var(--dark);
            background-color: #fff;
            margin: 0;
            padding: 0;
            overflow-x: hidden;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* Hero Section */
        .hero {
            background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
            color: white;
            padding: 100px 0;
            position: relative;
            overflow: hidden;
        }
        
        .hero::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('https://images.unsplash.com/photo-1517430816045-df4b7de11d1d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center;
            background-size: cover;
            opacity: 0.15;
            z-index: 0;
        }
        
        .hero-content {
            position: relative;
            z-index: 1;
            max-width: 800px;
            margin: 0 auto;
            text-align: center;
        }
        
        .hero h1 {
            font-size: 3.5rem;
            font-weight: 700;
            margin-bottom: 20px;
            line-height: 1.2;
        }
        
        .hero p {
            font-size: 1.25rem;
            max-width: 700px;
            margin: 0 auto 30px;
            opacity: 0.9;
        }
        
        .cta-button {
            display: inline-block;
            background-color: var(--accent);
            color: var(--dark);
            padding: 12px 30px;
            border-radius: 50px;
            font-size: 1.1rem;
            font-weight: 600;
            text-decoration: none;
            transition: var(--transition);
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        }
        
        .cta-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
            background-color: #f8c14e;
        }
        
        /* Section Styling */
        .section {
            padding: 80px 0;
            position: relative;
        }
        
        .section-title {
            text-align: center;
            margin-bottom: 50px;
            position: relative;
        }
        
        .section-title h2 {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--secondary);
            display: inline-block;
            margin-bottom: 15px;
        }
        
        .section-title h2::after {
            content: "";
            display: block;
            width: 60px;
            height: 4px;
            background: var(--accent);
            margin: 15px auto 0;
            border-radius: 2px;
        }
        
        .section-title p {
            color: var(--gray);
            max-width: 700px;
            margin: 0 auto;
            font-size: 1.1rem;
        }
        
        /* Feature Cards */
        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin-top: 50px;
        }
        
        .feature-card {
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
            transition: var(--transition);
            border: 1px solid rgba(0,0,0,0.05);
        }
        
        .feature-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 35px rgba(0,0,0,0.1);
        }
        
        .feature-icon {
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            color: white;
            width: 70px;
            height: 70px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 30px auto 20px;
            font-size: 1.8rem;
        }
        
        .feature-content {
            padding: 0 25px 30px;
            text-align: center;
        }
        
        .feature-content h3 {
            font-size: 1.5rem;
            margin-bottom: 15px;
            color: var(--secondary);
        }
        
        .feature-content p {
            color: var(--gray);
            margin-bottom: 20px;
        }
        
        /* Code Block */
        .code-section {
            background-color: var(--code-bg);
            border-radius: 10px;
            padding: 30px;
            margin: 40px 0;
            position: relative;
            overflow: hidden;
        }
        
        .code-section h4 {
            margin-top: 0;
            color: var(--secondary);
            display: flex;
            align-items: center;
        }
        
        .code-section h4 i {
            margin-right: 10px;
            color: var(--primary);
        }
        
        pre {
            background-color: #1e1e1e;
            color: #d4d4d4;
            padding: 20px;
            border-radius: 5px;
            overflow-x: auto;
            font-family: 'Courier New', Courier, monospace;
            font-size: 0.9rem;
            line-height: 1.5;
            margin: 20px 0 0;
            position: relative;
        }
        
        pre::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 30px;
            background-color: #2d2d2d;
            border-top-left-radius: 5px;
            border-top-right-radius: 5px;
        }
        
        /* Steps Section */
        .steps-container {
            max-width: 800px;
            margin: 0 auto;
            position: relative;
        }
        
        .step {
            display: flex;
            margin-bottom: 40px;
            position: relative;
            z-index: 1;
        }
        
        .step-number {
            background-color: var(--accent);
            color: white;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            flex-shrink: 0;
            margin-right: 20px;
            position: relative;
            z-index: 2;
        }
        
        .step-content {
            background-color: white;
            border-radius: 10px;
            padding: 25px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.05);
            flex-grow: 1;
            position: relative;
            border: 1px solid rgba(0,0,0,0.05);
        }
        
        .step-content h3 {
            margin-top: 0;
            color: var(--secondary);
        }
        
        .steps-container::before {
            content: "";
            position: absolute;
            top: 20px;
            left: 20px;
            width: 2px;
            height: calc(100% - 40px);
            background-color: var(--accent);
            z-index: 1;
        }
        
        /* Visualization */
        .visualization {
            background-color: white;
            border-radius: 10px;
            padding: 30px;
            margin: 60px auto;
            max-width: 900px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
            border: 1px solid rgba(0,0,0,0.05);
        }
        
        .visualization-title {
            text-align: center;
            margin-bottom: 30px;
        }
        
        .visualization-title h3 {
            color: var(--secondary);
            font-size: 1.8rem;
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .hero h1 {
                font-size: 2.5rem;
            }
            
            .hero p {
                font-size: 1.1rem;
            }
            
            .section {
                padding: 60px 0;
            }
            
            .section-title h2 {
                font-size: 2rem;
            }
            
            .steps-container::before {
                display: none;
            }
            
            .step {
                flex-direction: column;
            }
            
            .step-number {
                margin-right: 0;
                margin-bottom: 15px;
            }
        }
    </style>
</head>
<body>
    <!-- Hero Section -->
    <section class="hero">
        <div class="hero-content">
            <h1>Cloudflare Workers</h1>
            <p>革命性的边缘计算平台，让开发者能够在全球200+个数据中心运行JavaScript代码。相比传统云服务，代码不运行在特定地区，而是运行在网络本身，为全栈应用和API开发提供了前所未有的性能体验。</p>
            <a href="https://workers.cloudflare.com" class="cta-button" target="_blank">
                <i class="fas fa-external-link-alt"></i> 访问官网
            </a>
        </div>
    </section>

    <!-- Core Features Section -->
    <section class="section">
        <div class="container">
            <div class="section-title">
                <h2>核心功能概述</h2>
                <p>Cloudflare Workers 提供了一系列强大的功能，让开发者能够构建高性能的分布式应用</p>
            </div>
            
            <div class="features-grid">
                <div class="feature-card">
                    <div class="feature-icon">
                        <i class="fas fa-globe"></i>
                    </div>
                    <div class="feature-content">
                        <h3>边缘执行环境</h3>
                        <p>在地理位置上更接近用户，以最小延迟响应请求，全球部署无需额外配置</p>
                    </div>
                </div>
                
                <div class="feature-card">
                    <div class="feature-icon">
                        <i class="fas fa-code"></i>
                    </div>
                    <div class="feature-content">
                        <h3>全栈开发支持</h3>
                        <p>现在可以部署静态网站和全栈应用，支持React Router v7、Astro、Vue等框架</p>
                    </div>
                </div>
                
                <div class="feature-card">
                    <div class="feature-icon">
                        <i class="fas fa-database"></i>
                    </div>
                    <div class="feature-content">
                        <h3>KV存储集成</h3>
                        <p>提供分布式键值存储，支持数据持久化和缓存</p>
                    </div>
                </div>
                
                <div class="feature-card">
                    <div class="feature-icon">
                        <i class="fas fa-expand"></i>
                    </div>
                    <div class="feature-content">
                        <h3>自动弹性扩展</h3>
                        <p>根据流量自动、弹性地扩展Workers实例，无需手动管理服务器</p>
                    </div>
                </div>
                
                <div class="feature-card">
                    <div class="feature-icon">
                        <i class="fas fa-shield-alt"></i>
                    </div>
                    <div class="feature-content">
                        <h3>安全隔离运行</h3>
                        <p>每个Worker在独立的V8隔离环境中运行，确保安全性</p>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Use Cases Section -->
    <section class="section" style="background-color: #f8f9fa;">
        <div class="container">
            <div class="section-title">
                <h2>使用场景</h2>
                <p>Cloudflare Workers 适用于多种现代Web开发场景</p>
            </div>
            
            <div class="visualization">
                <div class="mermaid">
                    graph TD
                    A[Cloudflare Workers] --> B[API代理与中转]
                    A --> C[动态内容处理]
                    A --> D[微前端架构]
                    
                    B --> B1[OpenAI API代理]
                    B --> B2[自定义域名访问]
                    B --> B3[解决网络限制]
                    
                    C --> C1[动态内容缓存]
                    C --> C2[用户身份验证]
                    C --> C3[机器人检测和限流]
                    
                    D --> D1[服务端渲染]
                    D --> D2[高可扩展方案]
                    D --> D3[性能优化]
                </div>
            </div>
        </div>
    </section>

    <!-- Advantages Section -->
    <section class="section">
        <div class="container">
            <div class="section-title">
                <h2>优势与特色</h2>
                <p>Cloudflare Workers 与传统解决方案的对比优势</p>
            </div>
            
            <div class="code-section">
                <h4><i class="fas fa-star"></i> 边缘优先架构</h4>
                <p>与AWS Lambda等传统Serverless平台相比，Workers消除了冷启动问题，响应时间通常在毫秒级别。其基于V8引擎的轻量化运行时比容器化方案更加高效。此外，Cloudflare的全球网络覆盖让应用天然具备CDN级别的分发能力。</p>
                
                <h4><i class="fas fa-info-circle"></i> 注意事项</h4>
                <p>Workers主要支持JavaScript/TypeScript，语言选择相对有限，且复杂的CPU密集型任务可能不太适合。</p>
            </div>
        </div>
    </section>

    <!-- Pricing Section -->
    <section class="section" style="background-color: #f8f9fa;">
        <div class="container">
            <div class="section-title">
                <h2>使用门槛与成本</h2>
                <p>灵活的价格方案，适合各种规模的项目</p>
            </div>
            
            <div class="features-grid">
                <div class="feature-card" style="text-align: center;">
                    <div class="feature-icon" style="background: linear-gradient(135deg, #28a745 0%, #20c997 100%);">
                        <i class="fas fa-gem"></i>
                    </div>
                    <div class="feature-content">
                        <h3>免费版</h3>
                        <p>每天10万次请求额度</p>
                        <p>对个人项目和中小型应用完全够用</p>
                        <p>基础功能</p>
                    </div>
                </div>
                
                <div class="feature-card" style="text-align: center;">
                    <div class="feature-icon" style="background: linear-gradient(135deg, #007bff 0%, #3b8df0 100%);">
                        <i class="fas fa-crown"></i>
                    </div>
                    <div class="feature-content">
                        <h3>付费版</h3>
                        <p>起价$5/月</p>
                        <p>更高的请求限额</p>
                        <p>额外功能支持</p>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Getting Started Section -->
    <section class="section">
        <div class="container">
            <div class="section-title">
                <h2>上手指南</h2>
                <p>只需5分钟即可创建并部署您的第一个Worker</p>
            </div>
            
            <div class="steps-container">
                <div class="step">
                    <div class="step-number">1</div>
                    <div class="step-content">
                        <h3>注册Cloudflare账号并进入Workers控制台</h3>
                        <p>访问 <a href="https://dash.cloudflare.com/sign-up" target="_blank">Cloudflare 注册页面</a> 创建账号，然后进入Workers & Pages部分</p>
                    </div>
                </div>
                
                <div class="step">
                    <div class="step-number">2</div>
                    <div class="step-content">
                        <h3>点击"Create a Worker"创建新项目</h3>
                        <p>在控制台界面找到创建Worker的按钮，为您的项目命名</p>
                    </div>
                </div>
                
                <div class="step">
                    <div class="step-number">3</div>
                    <div class="step-content">
                        <h3>在在线编辑器中编写JavaScript代码</h3>
                        <p>使用内置编辑器编写您的Worker逻辑，支持实时预览</p>
                    </div>
                </div>
                
                <div class="step">
                    <div class="step-number">4</div>
                    <div class="step-content">
                        <h3>使用内置的测试功能验证代码逻辑</h3>
                        <p>利用测试工具确保您的Worker按预期工作</p>
                    </div>
                </div>
                
                <div class="step">
                    <div class="step-number">5</div>
                    <div class="step-content">
                        <h3>点击"Save and Deploy"完成部署</h3>
                        <p>您的Worker现在已部署在全球边缘网络上</p>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Deployment Guide Section -->
    <section class="section" style="background-color: #f8f9fa;">
        <div class="container">
            <div class="section-title">
                <h2>部署本地API接口</h2>
                <p>完整指南：从本地开发到生产部署</p>
            </div>
            
            <div class="code-section">
                <h4><i class="fas fa-terminal"></i> 环境准备</h4>
                <pre><code># 安装Node.js (版本16+)
# 访问 https://nodejs.org 下载安装

# 验证安装
node --version
npm --version

# 全局安装Wrangler
npm install -g wrangler

# 验证安装
wrangler --version</code></pre>
                
                <h4><i class="fas fa-project-diagram"></i> 项目初始化</h4>
                <pre><code># 创建项目目录
mkdir my-api-worker
cd my-api-worker

# 使用Wrangler创建项目
wrangler init

# 选择配置：
# - 项目名称：my-api-worker
# - 是否使用TypeScript：推荐选择Yes
# - 是否使用git：Yes
# - 是否部署：暂时选择No</code></pre>
                
                <h4><i class="fas fa-code"></i> API代码示例</h4>
                <pre><code>export default {
  async fetch(request) {
    const url = new URL(request.url);
    
    // 简单路由
    if (url.pathname === '/api/hello') {
      return new Response(JSON.stringify({
        message: 'Hello from Cloudflare Workers!'
      }), {
        headers: { 'Content-Type': 'application/json' }
      });
    }
    
    return new Response('Not Found', { status: 404 });
  }
};</code></pre>
                
                <h4><i class="fas fa-rocket"></i> 部署命令</h4>
                <pre><code># 登录Cloudflare账号
wrangler login

# 部署到生产环境
wrangler deploy

# 开发模式启动
wrangler dev</code></pre>
            </div>
        </div>
    </section>

    <script>
        // Initialize Mermaid
        mermaid.initialize({
            startOnLoad: true,
            theme: 'default',
            flowchart: {
                useMaxWidth: true,
                htmlLabels: true,
                curve: 'basis'
            }
        });
        
        // Add hover effects to feature cards
        document.querySelectorAll('.feature-card').forEach(card => {
            card.addEventListener('mouseenter', () => {
                const icon = card.querySelector('.feature-icon');
                icon.style.transform = 'scale(1.1) rotate(5deg)';
            });
            
            card.addEventListener('mouseleave', () => {
                const icon = card.querySelector('.feature-icon');
                icon.style.transform = 'scale(1) rotate(0)';
            });
        });
    </script>
</body>
</html>
```